package com.jinhao.crowd.boot.service.impl;

import com.jinhao.crowd.boot.entity.User;
import com.jinhao.crowd.boot.mapper.UserMapper;
import com.jinhao.crowd.boot.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created on 2021/10/4.
 *
 * @author Valar Morghulis
 */
@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public List<User> getAll() {
        return userMapper.findAll();
    }
}
